<template style=" display: flex;flex-direction:column;height: 100%;">
    <div class="con">
      <div>
        <van-nav-bar style="background: #e5e5e5;width: 100%">
          <van-icon :name="as" color='black' size='40px' slot="left" @click-left="onClickLeft"
          style="display:block;border-radius:50%;overflow:hidden"
          
           />
          <span slot="title" style="font-size: 18px">VIP会员专区</span>
        </van-nav-bar>
      </div>
      <div>
        <van-row class="vip-top" type="flex" justify="space-between">
          <van-col span="6" class="top-left" >
            <h2>
              自己练半年，<br>不如花钱30天！
            </h2>
            <p>开通vip会员，享海量训练</p>
          </van-col>
          <van-col span="6" class="top-right">
            <van-icon name="gem-o" size="82px" color="white"/>
            <router-link tag="button"   class="vip-btn" to="/buyvip">开通VIP</router-link>
          </van-col>
        </van-row>
        <div class="vip-plan">
          <div>
            <h2 class="vip-plan-h2">丰富计划</h2>
            <p class="vip-plan-p">助你达到目的，养成好习惯<span>1/6</span></p>
          </div>
          <router-link class="img-box" to="/Day" tag="div">
            <img src="" alt="">
            <div class="img-tex">
              <h3>28天蜜桃臀养成计划</h3>
              <p>性感开启新模式</p>
            </div>
          </router-link>
        </div>
        <div class="vip-plan">
          <div>
            <h2 class="vip-plan-h2">专享课程</h2>
            <p class="vip-plan-p">每月更新，惊喜不断</p>
          </div>
          <div>
            <ul class="list">
              <li class="list-item">
                <div class="list-img">
                  <img src="" alt="">
                </div>
                <h3 class="list-name">普拉提直径系列1111</h3>
                <p class="list-pop">人</p>
              </li>
              <li class="list-item">
                <div class="list-img">
                  <img src="" alt="">
                </div>
                <h3 class="list-name">普拉提直径系列1111</h3>
                <p class="list-pop">人</p>
              </li>
              <li class="list-item">
                <div class="list-img">
                  <img src="" alt="">
                </div>
                <h3 class="list-name">普拉提直径系列1111</h3>
                <p class="list-pop">人</p>
              </li>
              <li class="list-item">
                <div class="list-img">
                  <img src="" alt="">
                </div>
                <h3 class="list-name">普拉提直径系列1111</h3>
                <p class="list-pop">人</p>
              </li>
            </ul>
          </div>
          <div class="btn-box">
            <van-button type="default" round  class="all-btn" block >
              全部专享课程
              <van-icon name="arrow" ></van-icon>
            </van-button>
          </div>
        </div>
        <div class="vip-pri">
          <div>
            <h2 class="vip-plan-h2">更多会员特权</h2>
            <p class="vip-plan-p">事项特权，享尽富贵</p>
          </div>
          <div class="pri-box">
            <router-link to="/vippri" tag="div" class="pri-item">
              <img src="" alt="" class="pri-img">
              <p>专享课程每月</p>
            </router-link>
            <router-link to="/vippri" tag="div" class="pri-item">
              <img src="" alt="" class="pri-img">
              <p>全部训练计划</p>
            </router-link>
            <router-link to="/vippri" tag="div" class="pri-item">
              <img src="" alt="" class="pri-img">
              <p>专享课程每月</p>
            </router-link>
            <router-link to="" tag="div" class="pri-item">
              <img src="" alt="" class="pri-img">
              <p>全部训练计划</p>
            </router-link>
            <router-link to="/vippri" tag="div" class="pri-item">
              <img src="" alt="" class="pri-img">
              <p>专享课程每月</p>
            </router-link>
            <router-link to="/vippri" tag="div" class="pri-item">
              <img src="" alt="" class="pri-img">
              <p>全部训练计划</p>
            </router-link>
          </div>
          <van-row class="buy-vip" type="flex" justify="center">
            <van-col span="12" class="buy-box">
              <div>
                <p style="margin: 38px 0 30px 0; font-size: 14px;color: white">尊贵的VIP特权</p>
                <van-button type="default" round size="small" style="height: 24px;line-height: 24px">
                  立即开通
                </van-button>
              </div>
            </van-col>
          </van-row>
        </div>
      </div>
    </div>
</template>

<script>
export default {
  name:'Vip',
  data(){
    return{
      as: this.$store.state.plce,

    }
  },
  methods:{
    onClickLeft(){

    }
  },
  mounted() {
    document.querySelector('body').setAttribute('style', 'background-color:#f5f5f5')
  },
  beforeDestroy() {
    document.querySelector('body').removeAttribute('style')
  }
}
</script>

<style scoped>
  img{display: block}
  .con{
    display: flex;flex-direction:column;height: 100%;background: #e5e5e5
  }
  .vip-top{
    height: 185px;background: #C1C1C1 ;box-sizing: border-box;padding: 49px 44px 0 24px;
  }
  .top-left{
    width: 173px;float: left;
  }
  .top-left h2{
    font-size: 24px;color: #ffffff;line-height: 33px; font-weight: normal;
  }
  .top-left p{
    font-size: 14px;color: #DBDBDB;margin-top: 15px;
  }
  .top-right{
  }
  .vip-btn{
    height: 33px ;font-size: 14px;line-height: 33px;background: white;color: black;border: 0;border-radius: 16px;width: 81px;
  }
  .vip-plan{margin-top: 20px;padding: 44px 13px 48px 13px;background:#ffffff}
  .vip-plan-h2{font-size:24px;margin-bottom: 21px ;font-weight: normal}
  .vip-plan-p {font-size: 18px}
  .img-box{
    height: 118px;width: 100%;margin-top: 44px;background: #bbbbbb;position: relative;
  }
  .img-tex{
    position: absolute;left: 30px;bottom: 14px;
  }
  .img-tex h3{font-size: 18px;color: #646464;margin-bottom: 5px}
  .img-tex p{font-size: 12px;color: #737373 }
  .list{margin-top: 50px;display: flex;justify-content: space-between;flex-wrap:wrap}
  .list-item{width: 105px;margin-top: 18px;}
  .list-img{height: 70px;width: 105px;}
  .list-name{padding: 10px 0 8px 0;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;font-size: 16px;}
  .list-pop{font-size: 12px;color: #797979}
  .btn-box{display: flex;justify-content: center;margin-top: 35px}
  .all-btn{
      height: 52px;width: 175px;font-size: 14px;line-height: 52px;vertical-align: middle;
  }
  .vip-pri{
    margin-top: 20px;padding: 44px 13px 48px 13px;background:#ffffff
  }
  .pri-box{padding: 40px;display: flex;justify-content: space-between;flex-wrap:wrap}
  .pri-item{
    width: 100px;text-align: center;
  }
  .pri-img{
    height: 100px;width: 100px;border: 1px solid #EEEEEE;
  }
  .pri-item p {
    line-height: 60px;font-size: 14px;
  }
  .buy-box{
    height: 158px;width: 294px;border-radius: 20px;background: #C1C1C1;margin-top: 12px;text-align: center;
  }
</style>
